package com.cqjtu.platform.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author pengyangyan
 */
@Data
@Entity
@Table(name = "car_info")
public class CarInfo{
    /**
     * 车牌号，也是唯一主键
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name = "plate_num")
    private String plateNum;
    /**
     * 车辆大小类型
     */
    @Column(name = "car_size")
    private Integer carSize;
    /**
     * 车辆其他介绍(键值对转化为json字符串保存)
     */
    @Column(name = "car_desc")
    private String carDesc;
    /**
     * 车辆图片id
     */
    @Column(name = "car_pic")
    private String carPic;
}
